<?php /* Smarty version 2.3.0, created on 2011-11-02 10:32:28
         compiled from Default/admin_b.tpl */ ?>

<?php echo '
<script language="JavaScript" type="text/JavaScript">
function showCategory(uid)
{   

	if (document.getElementById(\'type_\'+uid).value == 2)
	{  
	  
		document.getElementById("cats").style.display =\'block\';
		

	} else 
	{
		document.getElementById("cats").style.display =\'none\';
		
	}	
}
function seleccionar(choiceBox,selBox,str_sel) {
  	choiceBox		= document.getElementById(choiceBox);
  	choiceBoxLength	= choiceBox.length;
  	selBox			= document.getElementById(selBox);
  	str_sel			= document.getElementById(str_sel);
    for ( i=0; i<choiceBoxLength; i++){
        if (choiceBox.options[i].selected == true ) {
            selBoxLength= selBox.length;
				var text 	= choiceBox.options[i].text;
				var value 	= choiceBox.options[i].value;
            selBox.options[selBoxLength]= new Option(text,value);
        }
    }

    for ( i = (choiceBoxLength -1); i>=0; i--){
        if (choiceBox.options[i].selected == true ) {
            choiceBox.options[i] = null;
        }
    }	
	grabar(choiceBox,selBox,str_sel);
  }

  function quitar(choiceBox,selBox,str_sel) {
  	choiceBox	= document.getElementById(choiceBox);
  	selBox		= document.getElementById(selBox);
  	str_sel		= document.getElementById(str_sel);
  	
    selBoxLength = selBox.length ;
	for ( i=0; i<selBoxLength; i++){
      if (selBox.options[i].selected == true ) {
        choiceBoxLength = choiceBox.length;
		var text 	= selBox.options[i].text;
		var value 	= selBox.options[i].value;
        choiceBox.options[choiceBoxLength]= new Option(text,value);
       }
    }
    for ( i=(selBoxLength-1); i>=0; i--) {
      if (selBox.options[i].selected == true ) {
        selBox.options[i] = null;
      }
    }	
	grabar(choiceBox,selBox,str_sel);		  
  }

 function grabar(choiceBox,selBox,str_sel) {
	var strValues = "";
	var boxLength = selBox.length;

	for (i = 0; i < boxLength; i++) {
		itemVal = selBox.options[i].value;
		if (strValues == "")
			strValues = itemVal;
		else
			strValues = strValues + "/" + itemVal;
	}
	str_sel.value = strValues;	
	choiceBox.selectedIndex=-1;
	selBox.selectedIndex=-1;	
  }
  
  function restaurar(choiceBox,selBox,str_sel) {
  	choiceBox		= document.getElementById(choiceBox);
  	selBox			= document.getElementById(selBox);
  	str_sel			= document.getElementById(str_sel);
	sel_arr	 		= str_sel.value.split("/");
	for (x = 0; x < sel_arr.length; x++ ) { 
		for (y = 0; y < choiceBox.length; y++ ) {
	 	  text	= choiceBox.options[y].text;
	 	  value	= choiceBox.options[y].value;
		  if ( value == sel_arr[x]) {
		    selBox.options[selBox.length] = new Option(text,value);
	 		 choiceBox.options[y] = null;
		  }	 
		}
	}
	grabar(choiceBox,selBox,str_sel);		  
  }  
</script>
'; ?>

<table  align="center" width="953" style="BORDER-RIGHT:#999 1px solid; border-bottom:#999 1px solid; border-left:#999 1px solid; 
        border-top:#999 1px solid;" border="0" cellpadding="0" cellspacing="0">
		
  <!--DWLayoutTable-->
  <tr>
    <td height="40" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="20" height="19" valign="top" bgcolor="#333333" style="border-bottom:#999999 2px solid;"><!--DWLayoutEmptyCell-->&nbsp;</td>
        <td width="644" valign="middle" bgcolor="#333333" class="style2" style="border-bottom:#999999 2px solid;">Administracion
          de Usuarios - Tipo: <?php if ($this->_tpl_vars['data']['users'][0]['type'] == 1): ?>Administrador<?php elseif ($this->_tpl_vars['data']['users'][0]['type'] == 2): ?>Administrador de Categorias<?php else: ?>Administrador de Estadisticas<?php endif; ?> </td>
        <td width="268" align="right" valign="middle" bgcolor="#333333" class="style2" style="border-bottom:#999999 2px solid;">[<a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/admin.php" class="blanco">Administradores</a>]</td>
        <td bgcolor="#333333" style="border-bottom:#999999 2px solid;" width="19" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td  width="15" height="312" valign="top"  ><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="936" valign="top">
	  <table    width="100%" border="0" cellpadding="0" cellspacing="0">
	    <!--DWLayoutTable-->
	    <form method="post" action="<?php echo $this->_tpl_vars['conf']['html']; ?>
/admin.php" >
	      <input type="hidden" name="cid" value="<?php echo $this->_tpl_vars['category']['cid']; ?>
">
	      <tr>
	        <td width="314" height="20">&nbsp;</td>
            <td width="57">&nbsp;</td>
            <td width="26">&nbsp;</td>
            <td width="539">&nbsp;</td>
          </tr>
	      <?php if (isset($this->_sections["u"])) unset($this->_sections["u"]);
$this->_sections["u"]['name'] = "u";
$this->_sections["u"]['loop'] = is_array($this->_tpl_vars['data']['users']) ? count($this->_tpl_vars['data']['users']) : max(0, (int)$this->_tpl_vars['data']['users']);
$this->_sections["u"]['show'] = true;
$this->_sections["u"]['max'] = $this->_sections["u"]['loop'];
$this->_sections["u"]['step'] = 1;
$this->_sections["u"]['start'] = $this->_sections["u"]['step'] > 0 ? 0 : $this->_sections["u"]['loop']-1;
if ($this->_sections["u"]['show']) {
    $this->_sections["u"]['total'] = $this->_sections["u"]['loop'];
    if ($this->_sections["u"]['total'] == 0)
        $this->_sections["u"]['show'] = false;
} else
    $this->_sections["u"]['total'] = 0;
if ($this->_sections["u"]['show']):

            for ($this->_sections["u"]['index'] = $this->_sections["u"]['start'], $this->_sections["u"]['iteration'] = 1;
                 $this->_sections["u"]['iteration'] <= $this->_sections["u"]['total'];
                 $this->_sections["u"]['index'] += $this->_sections["u"]['step'], $this->_sections["u"]['iteration']++):
$this->_sections["u"]['rownum'] = $this->_sections["u"]['iteration'];
$this->_sections["u"]['index_prev'] = $this->_sections["u"]['index'] - $this->_sections["u"]['step'];
$this->_sections["u"]['index_next'] = $this->_sections["u"]['index'] + $this->_sections["u"]['step'];
$this->_sections["u"]['first']      = ($this->_sections["u"]['iteration'] == 1);
$this->_sections["u"]['last']       = ($this->_sections["u"]['iteration'] == $this->_sections["u"]['total']);
?>
	      <tr>
	        <td height="188" valign="top"><table  width="100%" border="0" cellpadding="0" cellspacing="0">
	          <!--DWLayoutTable-->
	          <tr>
	            <td width="114" height="25"   >Nombre:</td>
                  <td width="191"   >
                 <input type="text" name="name[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" size="15" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['name']; ?>
" maxlength="50">             </td>
                  <td width="9" >&nbsp;</td>
                </tr>
	          
	          <tr>
	            <td height="25"   >Correo:</td>
                  <td>
                    <input type="text" name="email[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" size="23" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['email']; ?>
" maxlength="70">               </td>
                  <td >&nbsp;</td>
                </tr>
	          <tr>
	            <td height="25"    >Nombre
	              de Usuario: </td>
                  <td   >
                    <input type="text" name="username[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" size="23" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['username']; ?>
" maxlength="70">               </td>
                  <td >&nbsp;</td>
                </tr>
	          <tr>
	            <td height="25"  >Clave:</td>
                  <td>
                  <input type="password" name="password[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" size="23" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['password']; ?>
" maxlength="100">				  </td>
  			      <input type="hidden" name="actual_password[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['password']; ?>
" maxlength="50">
	            <td >&nbsp;</td>
                </tr>
	          <tr>
	            <td height="25"   >Lugar:</td>
                  <td   >
                    <input type="text" name="place[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" size="27" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['place']; ?>
" maxlength="70">               </td>
                  <td >&nbsp;</td>
                </tr>
	          <tr>
	            <td height="25"  >Estado (activo):</td>
                  <td  >
				  <input type="checkbox" name="active[<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
]" value="1"   <?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['active_selected']; ?>
>				  </td>
                  <td>&nbsp;</td>
                </tr>
				
	          <tr>
	            <td height="25"  >Tipo:</td>
                  <td  ><select name="type_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
" id="type_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
" onChange="showCategory('<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
');" <?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid'] == '0'): ?>disabled<?php endif; ?>>
          <?php if (isset($this->_sections["s"])) unset($this->_sections["s"]);
$this->_sections["s"]['name'] = "s";
$this->_sections["s"]['loop'] = is_array($this->_tpl_vars['data']['admin_type']['uid']) ? count($this->_tpl_vars['data']['admin_type']['uid']) : max(0, (int)$this->_tpl_vars['data']['admin_type']['uid']);
$this->_sections["s"]['show'] = true;
$this->_sections["s"]['max'] = $this->_sections["s"]['loop'];
$this->_sections["s"]['step'] = 1;
$this->_sections["s"]['start'] = $this->_sections["s"]['step'] > 0 ? 0 : $this->_sections["s"]['loop']-1;
if ($this->_sections["s"]['show']) {
    $this->_sections["s"]['total'] = $this->_sections["s"]['loop'];
    if ($this->_sections["s"]['total'] == 0)
        $this->_sections["s"]['show'] = false;
} else
    $this->_sections["s"]['total'] = 0;
if ($this->_sections["s"]['show']):

            for ($this->_sections["s"]['index'] = $this->_sections["s"]['start'], $this->_sections["s"]['iteration'] = 1;
                 $this->_sections["s"]['iteration'] <= $this->_sections["s"]['total'];
                 $this->_sections["s"]['index'] += $this->_sections["s"]['step'], $this->_sections["s"]['iteration']++):
$this->_sections["s"]['rownum'] = $this->_sections["s"]['iteration'];
$this->_sections["s"]['index_prev'] = $this->_sections["s"]['index'] - $this->_sections["s"]['step'];
$this->_sections["s"]['index_next'] = $this->_sections["s"]['index'] + $this->_sections["s"]['step'];
$this->_sections["s"]['first']      = ($this->_sections["s"]['iteration'] == 1);
$this->_sections["s"]['last']       = ($this->_sections["s"]['iteration'] == $this->_sections["s"]['total']);
?>
            <option value="<?php echo $this->_tpl_vars['data']['admin_type']['uid'][$this->_sections['s']['index']]; ?>
" <?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['type'] == $this->_tpl_vars['data']['admin_type']['uid'][$this->_sections['s']['index']]): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['data']['admin_type']['name'][$this->_sections['s']['index']]; ?>
</option>
          <?php endfor; endif; ?>
        </select>                  </td>
                  <td>&nbsp;</td>
                </tr>
	          
	          
            </table></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
	      
	      <tr>
	        <td height="18"></td>
            <td></td>
            <td></td>
            <td></td>
          </tr>
	      <tr>
	        <td height="0"   colspan="3" valign="top">
              <div id="cats" style="display: none;">
                <table class="centro" width="100%" border="0" cellpadding="0" cellspacing="0">
                  <!--DWLayoutTable-->
                  <tr>
                    <td height="24" colspan="2"  ><strong>Categorias</strong></td>
                    <td width="53" >&nbsp;</td>
                    <td width="166" >&nbsp;</td>
                  </tr>
                  <tr>
                    <td width="170" height="76" >
                    <select name="cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
[]" id="cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
" size="4" multiple  style="width: 150px;">
			<?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['type'] != "2"): ?>
				<?php if (isset($this->_sections["ac"])) unset($this->_sections["ac"]);
$this->_sections["ac"]['name'] = "ac";
$this->_sections["ac"]['loop'] = is_array($this->_tpl_vars['category']['category']) ? count($this->_tpl_vars['category']['category']) : max(0, (int)$this->_tpl_vars['category']['category']);
$this->_sections["ac"]['show'] = true;
$this->_sections["ac"]['max'] = $this->_sections["ac"]['loop'];
$this->_sections["ac"]['step'] = 1;
$this->_sections["ac"]['start'] = $this->_sections["ac"]['step'] > 0 ? 0 : $this->_sections["ac"]['loop']-1;
if ($this->_sections["ac"]['show']) {
    $this->_sections["ac"]['total'] = $this->_sections["ac"]['loop'];
    if ($this->_sections["ac"]['total'] == 0)
        $this->_sections["ac"]['show'] = false;
} else
    $this->_sections["ac"]['total'] = 0;
if ($this->_sections["ac"]['show']):

            for ($this->_sections["ac"]['index'] = $this->_sections["ac"]['start'], $this->_sections["ac"]['iteration'] = 1;
                 $this->_sections["ac"]['iteration'] <= $this->_sections["ac"]['total'];
                 $this->_sections["ac"]['index'] += $this->_sections["ac"]['step'], $this->_sections["ac"]['iteration']++):
$this->_sections["ac"]['rownum'] = $this->_sections["ac"]['iteration'];
$this->_sections["ac"]['index_prev'] = $this->_sections["ac"]['index'] - $this->_sections["ac"]['step'];
$this->_sections["ac"]['index_next'] = $this->_sections["ac"]['index'] + $this->_sections["ac"]['step'];
$this->_sections["ac"]['first']      = ($this->_sections["ac"]['iteration'] == 1);
$this->_sections["ac"]['last']       = ($this->_sections["ac"]['iteration'] == $this->_sections["ac"]['total']);
?>
				<?php $this->assign('cat', $this->_tpl_vars['category']['cid'][$this->_sections['ac']['index']]); ?>
				<option value="<?php echo $this->_tpl_vars['category']['cid'][$this->_sections['ac']['index']]; ?>
"><?php echo $this->_tpl_vars['category']['category'][$this->_tpl_vars['cat']]; ?>
</option>
				<?php endfor; endif; ?>
			<?php else: ?>
				<?php if (isset($this->_sections["tac"])) unset($this->_sections["tac"]);
$this->_sections["tac"]['name'] = "tac";
$this->_sections["tac"]['loop'] = is_array($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_no_selected']['key']) ? count($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_no_selected']['key']) : max(0, (int)$this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_no_selected']['key']);
$this->_sections["tac"]['show'] = true;
$this->_sections["tac"]['max'] = $this->_sections["tac"]['loop'];
$this->_sections["tac"]['step'] = 1;
$this->_sections["tac"]['start'] = $this->_sections["tac"]['step'] > 0 ? 0 : $this->_sections["tac"]['loop']-1;
if ($this->_sections["tac"]['show']) {
    $this->_sections["tac"]['total'] = $this->_sections["tac"]['loop'];
    if ($this->_sections["tac"]['total'] == 0)
        $this->_sections["tac"]['show'] = false;
} else
    $this->_sections["tac"]['total'] = 0;
if ($this->_sections["tac"]['show']):

            for ($this->_sections["tac"]['index'] = $this->_sections["tac"]['start'], $this->_sections["tac"]['iteration'] = 1;
                 $this->_sections["tac"]['iteration'] <= $this->_sections["tac"]['total'];
                 $this->_sections["tac"]['index'] += $this->_sections["tac"]['step'], $this->_sections["tac"]['iteration']++):
$this->_sections["tac"]['rownum'] = $this->_sections["tac"]['iteration'];
$this->_sections["tac"]['index_prev'] = $this->_sections["tac"]['index'] - $this->_sections["tac"]['step'];
$this->_sections["tac"]['index_next'] = $this->_sections["tac"]['index'] + $this->_sections["tac"]['step'];
$this->_sections["tac"]['first']      = ($this->_sections["tac"]['iteration'] == 1);
$this->_sections["tac"]['last']       = ($this->_sections["tac"]['iteration'] == $this->_sections["tac"]['total']);
?>
				<option value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_no_selected']['key'][$this->_sections['tac']['index']]; ?>
"><?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_no_selected']['value'][$this->_sections['tac']['index']]; ?>
</option>
				<?php endfor; endif; ?>
			<?php endif; ?>
			</select>            </td>
                    <td colspan="2"   >
                      <input class="button" name="b_anhadir" type="button" id="b_anhadir" onClick="seleccionar('cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
','adm_cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
','tipos_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
')" value="&gt;&gt;">
                      <br />
                      <br />
                    <input class="button" name="b_quitar" type="button" id="b_quitar" onClick="quitar('cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
','adm_cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
','tipos_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
')" value="&lt;&lt;">            </td>
                    <td  >
                    <select name="adm_cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
[]" id="adm_cid_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
" size="4" multiple style="width: 150px;">
				<?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['type'] != "2"): ?>
				<?php else: ?>
					<?php if (isset($this->_sections["act"])) unset($this->_sections["act"]);
$this->_sections["act"]['name'] = "act";
$this->_sections["act"]['loop'] = is_array($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_selected']['cid']) ? count($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_selected']['cid']) : max(0, (int)$this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_selected']['cid']);
$this->_sections["act"]['show'] = true;
$this->_sections["act"]['max'] = $this->_sections["act"]['loop'];
$this->_sections["act"]['step'] = 1;
$this->_sections["act"]['start'] = $this->_sections["act"]['step'] > 0 ? 0 : $this->_sections["act"]['loop']-1;
if ($this->_sections["act"]['show']) {
    $this->_sections["act"]['total'] = $this->_sections["act"]['loop'];
    if ($this->_sections["act"]['total'] == 0)
        $this->_sections["act"]['show'] = false;
} else
    $this->_sections["act"]['total'] = 0;
if ($this->_sections["act"]['show']):

            for ($this->_sections["act"]['index'] = $this->_sections["act"]['start'], $this->_sections["act"]['iteration'] = 1;
                 $this->_sections["act"]['iteration'] <= $this->_sections["act"]['total'];
                 $this->_sections["act"]['index'] += $this->_sections["act"]['step'], $this->_sections["act"]['iteration']++):
$this->_sections["act"]['rownum'] = $this->_sections["act"]['iteration'];
$this->_sections["act"]['index_prev'] = $this->_sections["act"]['index'] - $this->_sections["act"]['step'];
$this->_sections["act"]['index_next'] = $this->_sections["act"]['index'] + $this->_sections["act"]['step'];
$this->_sections["act"]['first']      = ($this->_sections["act"]['iteration'] == 1);
$this->_sections["act"]['last']       = ($this->_sections["act"]['iteration'] == $this->_sections["act"]['total']);
?>
					<?php $this->assign('cid', $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_selected']['cid'][$this->_sections['act']['index']]); ?>
					<option value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_selected']['cid'][$this->_sections['act']['index']]; ?>
"><?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['category_selected']['category'][$this->_tpl_vars['cid']]; ?>
</option>
					<?php endfor; endif; ?>
				<?php endif; ?>
			 </select></td>
                  </tr>
                  <tr>
                    <td height="5"></td>
                    <td width="11"></td>
                    <td></td>
                    <td></td>
                  </tr>
                </table>
	        </div></td>
            <td></td>
          </tr>
	      <tr>
	        <td height="22">&nbsp;</td>
            <td></td>
            <td></td>
            <td></td>
          </tr>
	      <tr>
	        <td height="32" colspan="2" valign="top"><table  border="0" cellpadding="0" cellspacing="0">
	          <!--DWLayoutTable-->
	          <tr>
	            <?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid'] != 'x0'): ?><td width="101"  height="26" valign="top"><input type="submit" name="actualizar_admin_users" value="Actualizar"></td><?php endif; ?>
	            <?php if ($this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid'] == 'x0'): ?><td width="137"  valign="top"><input type="submit" name="insertar_admin_users"  value="Insertar Nuevo" /></td> <?php endif; ?>
	            
	            
                  <td width="36">&nbsp;</td>
                  
                  <!--td  valign="top"><input type="reset"  name="Submit322" value="Resetear" /></td-->
	            </tr>
	          <tr>
	            <td height="6"></td>
                  <td></td>
                  <td></td>
                  <td></td>
	          </tr>
	          
	          
            </table></td>
            <td>&nbsp;</td>
	        <td></td>
          </tr>
	      <tr>
	        <td height="32">&nbsp;</td>
	        <td></td>
	        <td></td>
	        <td></td>
          </tr>
	      
	      
		  <script>
		    showCategory('<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
');
			 //alert(<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['type']; ?>
);
		  </script>
	      <input name="tipos_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
" id="tipos_<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['uid']; ?>
" type="hidden" value="<?php echo $this->_tpl_vars['data']['users'][$this->_sections['u']['index']]['tipos']; ?>
"> 
	      <?php endfor; endif; ?>
     </form>
      </table></td>
  </tr>
  
  <tr>
    <td height="26" colspan="2" valign="top"  ><table style="border-top:#999 1px solid;"  width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      
      <tr>
        <td width="951" height="26" align="center" valign="middle" bgcolor="#EBEBEB" style="border-top:#D7D7D7 2px solid; border-bottom:#D7D7D7 2px solid;"><strong>[<a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/admin.php" class="negro">Administradores</a> | <a href="<?php echo $this->_tpl_vars['conf']['html']; ?>
/index.php" class="negro">Pagina Principal</a>]</strong></td>
        </tr>
      
      
    </table></td>
  </tr>
</table>